<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page session="true" %>
<c:set var="language" value="${not empty param.language ? param.language : not empty language ? language : pageContext.request.locale}" scope="session" />
<fmt:setLocale value="${language}" />
<fmt:setBundle basename="properties.text" />

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><fmt:message key="candidate" /></title>
</head>
<body>
<td><input type="hidden" name=<fmt:message key="emptycomment" /> id="emptycomment"></td>
	<form action="candidateComment" method="POST"
		style="margin-left: 25%; margin-top: 2%">

		<table columns="2" >

			<tr>
				<td><fmt:message key="comment" />:</td>
				<td><textarea name="comment" id="comment"></textarea></td>
			</tr>
			<tr style="display:none">
				<td><input type="text" name="savedUsername" id="savedUsername" value="<%= request.getSession().getAttribute("savedUserName") %>" > </td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="number" name="idCandidate" id="idCandidate" value="0" style="display: none"> 
					<input type="text" name="username" id="username" value="" style="display: none"> 
					<input type="number" name="idCandidateComment" id="idCandidateComment" value="0" style="display: none">
					<input type="submit" value=<fmt:message key="insert" /> name="addComment" onclick="return validateFields();"> 
					<input type="submit" value=<fmt:message key="edit" /> name="editComment" id="editComment" onclick="return validateFields();" disabled="disabled"> 
					<input type="submit" value=<fmt:message key="remove" /> name="deleteComment" id="deleteComment" disabled="disabled">
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<a id="backbutton" href="http://localhost:8080/jt-hr-WEB/candidate/displayCandidate"><fmt:message key="back" /></a>
				</td>
			</tr>
		</table>

	</form>
</body>
</html>